package com.ag.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbPlanStandard entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_PLAN_STANDARD", schema = "dbo", catalog = "AGDB")
public class TbPlanStandard implements java.io.Serializable {

	// Fields

	private String elId;
	private String EEntry;
	private Integer PUpper;
	private Integer PLower;
	private String PContent;
	private Integer PLevel;
	private String PNote;
	private String a;
	private String b;
	private String c;
	private Set<TbEventPlanStart> tbEventPlanStarts = new HashSet<TbEventPlanStart>(
			0);

	// Constructors

	/** default constructor */
	public TbPlanStandard() {
	}

	/** minimal constructor */
	public TbPlanStandard(String elId) {
		this.elId = elId;
	}

	/** full constructor */
	public TbPlanStandard(String elId, String EEntry, Integer PUpper,
			Integer PLower, String PContent, Integer PLevel, String PNote,
			String a, String b, String c,
			Set<TbEventPlanStart> tbEventPlanStarts) {
		this.elId = elId;
		this.EEntry = EEntry;
		this.PUpper = PUpper;
		this.PLower = PLower;
		this.PContent = PContent;
		this.PLevel = PLevel;
		this.PNote = PNote;
		this.a = a;
		this.b = b;
		this.c = c;
		this.tbEventPlanStarts = tbEventPlanStarts;
	}

	// Property accessors
	@Id
	@Column(name = "EL_ID", unique = true, nullable = false, length = 4)
	public String getElId() {
		return this.elId;
	}

	public void setElId(String elId) {
		this.elId = elId;
	}

	@Column(name = "E_ENTRY", length = 4000)
	public String getEEntry() {
		return this.EEntry;
	}

	public void setEEntry(String EEntry) {
		this.EEntry = EEntry;
	}

	@Column(name = "P_UPPER")
	public Integer getPUpper() {
		return this.PUpper;
	}

	public void setPUpper(Integer PUpper) {
		this.PUpper = PUpper;
	}

	@Column(name = "P_LOWER")
	public Integer getPLower() {
		return this.PLower;
	}

	public void setPLower(Integer PLower) {
		this.PLower = PLower;
	}

	@Column(name = "P_CONTENT", length = 4000)
	public String getPContent() {
		return this.PContent;
	}

	public void setPContent(String PContent) {
		this.PContent = PContent;
	}

	@Column(name = "P_LEVEL")
	public Integer getPLevel() {
		return this.PLevel;
	}

	public void setPLevel(Integer PLevel) {
		this.PLevel = PLevel;
	}

	@Column(name = "P_NOTE", length = 50)
	public String getPNote() {
		return this.PNote;
	}

	public void setPNote(String PNote) {
		this.PNote = PNote;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbPlanStandard")
	public Set<TbEventPlanStart> getTbEventPlanStarts() {
		return this.tbEventPlanStarts;
	}

	public void setTbEventPlanStarts(Set<TbEventPlanStart> tbEventPlanStarts) {
		this.tbEventPlanStarts = tbEventPlanStarts;
	}

}